import { MockMethod } from "vite-plugin-mock";
import { mock, Random } from "mockjs";
const dataGoods = mock({
  "list|10": [
    {
      goods: () => Random.name(),
      price: 3000,
    },
  ],
});
export default [
  {
    url: "/getData",
    method: "get",
    response: (res: any) => {
      return {
        code: 0,
        dataGoods,
      };
    },
  },
] as MockMethod[];
